package com.aistar.service;

import com.aistar.pojo.Comment;
import com.aistar.util.ServerResponse;
import org.springframework.data.mongodb.core.aggregation.ArrayOperators;

public interface CommentService extends BaseService<Comment> {

    //根据商品id获取到该商品的评论数
    public ServerResponse commentCount(Integer productId);

    //根据商品id获取到所有的评论
    public ServerResponse getAllCommentByProductId(Integer productId, Integer page);

    //根据用户id查询到用户的评论
    public ServerResponse getAllCommentByCustomerId(Integer customerId);

}
